#!/bin/sh

packpath="$1"
iconpath="$2"
execpath="$3"

echo -n "[Desktop Entry]
Type=Application
Version=1.0
Name=Spek
GenericName=Spectrum Analyser
Comment=Acoustic spectrum analyser
Comment[zh_CN]=声谱分析仪
Icon=${iconpath}
Exec=${execpath}
Terminal=false
Categories=Utility;Qt;AudioVideo;Audio;
MimeType=audio/3gpp;audio/ac3;audio/AMR;audio/AMR-WB;audio/basic;audio/mp4;audio/mpeg;audio/ogg;audio/prs.sid;audio/vnd.rn-realaudio;audio/x-aiff;audio/x-ape;audio/x-flac;audio/x-gsm;audio/x-it;audio/x-m4a;audio/x-matroska;audio/x-mp3;audio/x-mpeg;audio/x-ms-asf;audio/x-ms-asx;audio/x-ms-wax;audio/x-ms-wma;audio/x-musepack;audio/x-pn-aiff;audio/x-pn-au;audio/x-pn-wav;audio/x-pn-windows-acm;audio/x-realaudio;audio/x-real-audio;audio/x-sbc;audio/x-speex;audio/x-tta;audio/x-wav;audio/x-wavpack;audio/x-vorbis;audio/x-vorbis+ogg;audio/x-xm;application/x-flac;application/x-dts;
X-KDE-StartupNotify=false\n" > ${packpath}
